package app.contoller;

import app.service.impl.RepositeryServiceImpl;
import app.service.impl.VisitLogServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController

public class SerController {
    @Autowired
    private RepositeryServiceImpl repositeryService;

    @Autowired
    private VisitLogServiceImpl visitLogService;

    @GetMapping("getGoodsNum")
    public String getGoodsNum(String threadName) {
        visitLogService.insertAcount(threadName);
        return repositeryService.MINUS();

    }
}
